﻿(function () {
    CurrentProductsClass = {};

    CurrentProductsClass.Instance = {
        Init: function () {
            layui.use('form', function () {
                var form = layui.form;
                //form.render();
                form.on('checkbox(check_all)', function (data) {
                    $("input[name=check_product]").each(function (index, item) {
                        item.checked = data.elem.checked;
                        form.render('checkbox');//真JB蛋疼，必须渲染一下，
                    });
                });

            });
            //$(document).on('click', '#btn_soure', this.Submit);

        },
        Submit: function () {
            
            
           
        },


    };
})();